package com.hrcx.mystery.mapper;

import com.hrcx.mystery.dto.MysteryConsignmentDto;
import com.hrcx.mystery.pojo.EbMysteryUserConsignment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrcx.mystery.vo.EbMysteryUserConsignmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LinXiPeng
 */
public interface EbMysteryUserConsignmentMapper extends BaseMapper<EbMysteryUserConsignment> {

    /**
     * 获得寄售奖品
     *
     * @param consignmentDto 寄售请求参数
     * @param uid 用户编号
     * @return 寄售奖品集合
     */
    List<EbMysteryUserConsignmentVo> getCompoundPrize(@Param("consignmentDto") MysteryConsignmentDto consignmentDto,
                                                      @Param("uid") Integer uid);
}